#include "animationcircle.h"

AnimationCircle::AnimationCircle(QObject *parent):
        Animation(parent)
{
}

QVariantMap AnimationCircle::updateItems(QGraphicsObject* obj, int index, int count, QGraphicsScene* scene)
{
    Q_ASSERT(obj);
    Q_ASSERT(scene);
    QVariantMap map;
    float angle = (qreal)index / (qreal)(count);
    map.insert("pos",  QPointF(cos(angle * 6.28) * 250, sin(angle * 6.28) * 250));
    return map;
}
